package com.youxin.cpcenter.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.youxin.busfoundation.common.GlobalConfig;

import java.math.BigInteger;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Description 销售漏斗请求类
 * @author Kris.wang
 * @date 2017-12-09
 */
public class RequestSalesfunnelBean {
    @JsonProperty("member_id")
    private Long memberId;
    @JsonProperty("ent_member_id")
    private Long entMemberId;
    @JsonProperty("start_time")
    private Long startTime;
    @JsonProperty("end_time")
    private Long endTime;
    public Long getMemberId() {
        return memberId;
    }
    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }
    public Long getStartTime() {
        return (startTime == null)?0:startTime;
    }
    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }
    public Long getEndTime() {
        return (endTime == null)? new Date().getTime():endTime+GlobalConfig.DAYS_MILLISECONDS;
    }
    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }
    public Long getEntMemberId() {
        return entMemberId;
    }
    public void setEntMemberId(Long entMemberId) {
        this.entMemberId = entMemberId;
    }
}
